package com.acme.bankapp.exception;
/**
 * A class that implements the release of errors with insufficient funds for the loan.
 * @author Troitskaya Anastasia
 *
 */
public class OverDraftLimitExceededException extends NotEnoughFundsException {
	private double balance;
	private double maxCredit;

	public OverDraftLimitExceededException(double balance, double maxCredit) {
		super();
		this.balance = balance;
		this.maxCredit = maxCredit;
	}
	public double getBalance() {
		return this.balance;
	}
	public double getMaxCredit() {
		return this.maxCredit;
	}
}
